//
//  ConcreateObserver.hpp
//  Observer
//
//  Created by Shane on 17/9/18.
//  Copyright © 2017年 Shane. All rights reserved.
//

#ifndef ConcreteObserver_h
#define ConcreteObserver_h

#include <stdio.h>
#include <iostream>
#include "Observer.h"
#include "Subject.h"
using namespace std;


class ConcreteObserver : public Observer {
public:
    ConcreteObserver(Subject *pSubject):m_pSubject(pSubject){}
    void update(int value);
private:
    Subject *m_pSubject;
};

#endif /* ConcreateObserver_hpp */
